<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'detail';
if($_RQ['op']=='detail'){
	$id=intval($_RQ['id']);
	if(!$id){
		exi('未找到该场馆','error','jy_kexie/guan_list/');
	}else{
		$guan=pdo_get('jy_kexie_guan',array('id'=>$id));
	}
	$guan['bannner']=json_decode($guan['bannner'],true);
	$guan['worktime']=json_decode($guan['worktime'],true);
	$guan['lat_lng']=json_decode($guan['lat_lng'],true);
	$return['user']=pdo_get('jy_kexie_user',array('mid'=>$_SESSION['uid']));
	$guan['area_title']=pdo_getcolumn('jy_kexie_area',array('uniacid'=>$_SESSION['uniacid'],'id'=>$guan['area_id']),'title');
	$return['guan']=$guan;
	$return['sharedata']=array(
		'title'=>$guan['title']?$guan['title']:'场馆-在线教育',
		'desc'=>$guan['desc']?$guan['desc']:'在线教育，一个属于自己的在线教育！',
		'link'=>custom_url('jy_kexie/guan_detail//id='.$id.'&fromuser='.$_SESSION['uid'],true),
		'imgUrl'=>ATTACHMENT_URL.$guan['logo']
	);
	exi($return);
}
?>